//
//  ZTViewController.m
//  ZTPrivateLib
//
//  Created by 武得亮 on 03/07/2021.
//  Copyright (c) 2021 武得亮. All rights reserved.
//

#import "ZTViewController.h"
//#import <ZTPrivateLib/ZTPrivateLib.h>
#import <ZTPrivateLib.h>



@interface ZTViewController ()

@end

@implementation ZTViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
 


    
    
}


/** 督查督办*/
- (IBAction)duchaduban:(id)sender {

    NSDictionary *jsonDict = @{
        @"type":@"inspector_has_chosen"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
    
    
}

/** 用车管理*/
- (IBAction)yongcheguanli:(id)sender {
   
    NSDictionary *jsonDict = @{
        @"type":@"transport_management"
    };
    NSString *auth_code = @"5dbb80cb8b654f638556d0f2ed4e16eb";
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];

}


/** 文档中心*/
- (IBAction)wendangzhongxin:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"document_center"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
    
}


/** 新闻*/
- (IBAction)xinwen:(id)sender {
    
    NSDictionary *jsonDict = @{
        @"type":@"news"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
}

/** 代办 */
- (IBAction)daiban:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"to_do"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
    
}

/** 公文*/
- (IBAction)gongwen:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"official_document"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
}


/** 值班管理*/
- (IBAction)zhibanguanli:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"duty_management"
    };
    NSString *auth_code = @"3ddb09529e834d66858770abe2de6947";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
    
}


/** 资产管理*/
- (IBAction)zichangunali:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"assets_management"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
    
}


/** 合同管理*/
- (IBAction)hetongguanli:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"contract_management"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
    
}

/** 公告*/
- (IBAction)gonggao:(id)sender {
    NSDictionary *jsonDict = @{
        @"type":@"announcement"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
}


/** 事务管理*/
- (IBAction)shiwuguanli:(id)sender {
 
    NSDictionary *jsonDict = @{
        @"type":@"transaction_management"
    };
    NSString *auth_code = @"123";
    
    [ZTPrivatePushModule pushZTPrivatejsonDict:jsonDict andAuth_code:auth_code];
}


/** 政务阅读*/
- (IBAction)zhengwuyuedu:(id)sender {
    
    
    
    
}


/**退出登录    清楚该用户授权信息*/
- (IBAction)logoutPrivateData:(id)sender {
    [ZTPrivatePushModule logoutZTPrivate];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
